from rest_framework import serializers
from course.models import TrainCourse, TrainCourseExpense, TrainCourseTeacherExpense, TrainCourseTrainee


class TrainCourseSerializer(serializers.ModelSerializer):

    class Meta():

        model  = TrainCourse

        fields = "__all__"

class TrainCourseExpenseSerializer(serializers.ModelSerializer):

    class Meta():

        model  = TrainCourseExpense

        fields = "__all__"

class TrainCourseTeacherExpenseSerializer(serializers.ModelSerializer):

    class Meta():

        model  = TrainCourseTeacherExpense

        fields = "__all__"


class TrainCourseTraineeSerializer(serializers.ModelSerializer):

    class Meta():

        model  = TrainCourseTrainee

        fields = "__all__"

class TrainCourseExpenseSerializer(serializers.ModelSerializer):

    class Meta():

        model  = TrainCourseExpense

        fields = "__all__"

